package TreeDayShuZu.Exercise;


import java.util.Scanner;

public class Exercise03 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        //一年12个月的存储
        //用一个数组，保存12个月的英语单词，从键盘输入1-12，显示对应的单词。
        String[]mouthNames={"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};
        System.out.println("请输入月份名称");
        int number=scanner.nextInt();
        if (number<1||number>12){
            System.out.println("你输入的不合法");
        }else {
            System.out.println("月份"+number+"是"+mouthNames[number+1]);
        }
    }
}
